package com.cskaoyan.javase.homework.day08.util;

import java.util.Arrays;

/**
 * @description: 测试
 * @author: wuguidong@cskaoyan.onaliyun.com
 **/

public class Test {
    public static void main(String[] args) {
        // Person p = ScannerTools.getPersonInstanceByScanner();
        // p.print();
        // System.out.println("-----------------------");
        // Person[] personArrByScanner = ScannerTools.getPersonArrByScanner(5);
        Person[] personArrByScanner = new Person[3];
        personArrByScanner[0] = new Person("张三", 18);
        personArrByScanner[1] = new Person("李四", 18);
        personArrByScanner[2] = new Person("麻子", 28);
        System.out.println(Arrays.toString(personArrByScanner));
        // for (Person person : personArrByScanner) {
        //     person.print();
        // }
    }
}
